
import java.util.*;

public class ZComparator implements Comparator<Card> {
	public int compare(Card c1, Card c2) {
		int z1 = c1.getZ();
		int z2 = c2.getZ();
		return z1-z2;
	}
	public boolean equals(Object o) {
		return false;
	}
	
	public static void sort(List<Card> cards) {
		Collections.sort(cards, new ZComparator());
	}
}
